package com.xuxuduoduomei.knowledge_base.controller;

import com.xuxuduoduomei.knowledge_base.domain.Demo;
import com.xuxuduoduomei.knowledge_base.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author:xuxuduoduomei
 * @Date:2021/12/17 20:12
 */

@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private DemoService demoService;


    @GetMapping("/list1")
    public List<Demo> list() {
        return demoService.list();
    }


}
